<?php

namespace catchAdmin\phone\request\login;

use catcher\base\CatchRequest;

class GetMobileCodeRequest extends CatchRequest
{
    protected $needCreatorId = false;


    protected function rules(): array
    {
        return [
            'mobile|手机号' => 'require|mobile',
        ];
    }


    protected function message(): array
    {
        // TODO: Implement message() method.
        return [
            'mobile.require' => '请输入手机号',
            'mobile.mobile'  => '手机号格式不正确',
        ];
    }
}
